package com.example.designpattenexample.decorator.example;

public class CarInnerDecorator extends CarDecorator{
    public CarInnerDecorator(Car car) {
        super(car);
    }

    private void setGPS(){
        System.out.println("安装GPS");
    }

    @Override
    public void show() {
        super.show();
        this.setGPS();
    }
}
